//
//  BaseTabBarVC.swift
//  SwiftDemo
//
//  Created by Steven on 2020/7/30.
//  Copyright © 2020 Steven. All rights reserved.
//

import UIKit

class BaseTabBarVC: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

      

        let baseNav1 = BaseNavigationController(rootViewController: HomeController())
        let baseNav2 = BaseNavigationController(rootViewController: CreditPayVC())
        let baseNav3 = BaseNavigationController(rootViewController: PersonalController())

        let barItem_1 = UITabBarItem(title: "促销", image: UIImage(named:"icon_tabbar_default_promotion"), selectedImage: UIImage(named: "icon_tabbar_selected_promotion"))
         let barItem_2 = UITabBarItem(title: "联通专区", image: UIImage(named:"icon_tabbar_default_promotion"), selectedImage: UIImage(named: "icon_tabbar_selected_promotion"))

        let barItem_5 = UITabBarItem(title: "我的", image: UIImage(named:"icon_tabbar_default_personalCenter"), selectedImage: UIImage(named: "icon_tabbar_selected_personalCenter"))
        baseNav1.tabBarItem = barItem_1
        baseNav2.tabBarItem = barItem_2
        baseNav3.tabBarItem = barItem_5
        
        viewControllers = [baseNav1,baseNav2,baseNav3];

    }
    

}
